#ifndef _MAINWINDOW_H
#define _MAINWINDOW_H

#ifndef UNICODE
#define UNICODE
#endif // UNICODE

#include <windows.h>
#include <tchar.h>
#include <shlobj.h>

class Capture
{
public:
        Capture() {};
        ~Capture() {};
        void Save(HWND hwnd);
private:
        void CreateBMPFile(HWND hwnd, LPTSTR pszFile, PBITMAPINFO pbi, HBITMAP hBmp, HDC hDC);
        PBITMAPINFO CreateBitmapInfoStruct(HWND hwnd, BITMAP bmp);
        LPTSTR GenerateFileName();
        void HandleError(LPTSTR msg);
};

#endif // _MAINWINDOW_H
